﻿<%@ Page Title="Contract Lookup" Theme="POSSystem" Language="C#" MasterPageFile="~/EditPages/Popup.Master" AutoEventWireup="true" CodeBehind="ContractLookup.aspx.cs" Inherits="WebUI.EditPages.ContractLookup" %>

<%@ Register Src="~/Controls/POSControls/ContractListCtrl.ascx" TagName="ContractList" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PopupHeadHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PopupToolbarHolder" runat="server">
    <table class="popuptoolbar" width="100%">
        <tr>
            <td style="vertical-align:top; text-align:left; width:220px">
                <asp:Panel ID="panelPhoneNumber" runat="server" DefaultButton="btnSearchPhoneNumber" >
                    <asp:LinkButton class="tblabel" ID="btnNew" runat="server" OnClientClick="return false;">
                        <img src="Images/trans.png" /><asp:Label ID="label1" runat="server" Text="Phone#"></asp:Label>
                    </asp:LinkButton>
                    <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                    <img src="../Images/tbSep.png" />
                    <asp:Button ID="btnSearchPhoneNumber" OnClick="btnSearchPhoneNumber_OnClick" runat="server" style="display:none"> </asp:Button>
                </asp:Panel>
            </td>
            <td style="vertical-align:top; text-align:left"> 
                <asp:Panel ID="panel1" runat="server" DefaultButton="btnSearchCustomer" >
                    <asp:LinkButton class="tblabel" ID="LinkButton1" runat="server" OnClientClick="return false;">
                        <img src="Images/trans.png" /><asp:Label ID="label2" runat="server" Text="Customer"></asp:Label>
                    </asp:LinkButton>
                    <asp:DropDownList ID="ddlCustomer" runat="server" OnSelectedIndexChanged="btnSearchCustomer_OnClick" AutoPostBack="true" ></asp:DropDownList>
                    <asp:Button ID="btnSearchCustomer" OnClick="btnSearchCustomer_OnClick" runat="server" style="display:none"> </asp:Button>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PopupContentHolder" runat="server">
    <div style="height:560px; overflow:scroll">
        <uc:ContractList ID="lstContract" runat="server" AllowPaging="true" AllowSelecting="true" AllowSorting="true" 
            SaveOnCommit="false" PageSize="10" Width="100%"></uc:ContractList>
    </div>
</asp:Content>
